package com.finance.cooperate.dao.support.pojo;

import com.finance.cooperate.dao.support.constant.DeleteStatus;
import com.finance.cooperate.dao.support.jpa.EntityListener;
import lombok.Data;

import javax.persistence.*;

/**
 * @ClassName BaseAutomaticVO
 * @Description TODO
 * @Author shen
 * @Date 2022/5/25 16:21
 * @Modify ...
 */
@Data
@EntityListeners(EntityListener.class)
@MappedSuperclass
public class BaseAutomaticVO extends BaseVO{
    private static final long serialVersionUID = 860096148213945981L;


    //自增Id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;


    //创建时间
    @Column(name = "created")
    private Long created;

    //更新时间
    @Column(name = "updated")
    private Long updated;

    //删除状态[是否启用]
    @Column(name = "is_deleted")
    private DeleteStatus isDeleted;

}
